<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>伊犁智游 - AI旅行规划平台</title>
    <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script src="https://unpkg.com/element-plus/dist/index.full.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    <style>
        :root {
            --primary-color: #2563eb;
            --primary-dark: #1d4ed8;
            --primary-light: #3b82f6;
            --secondary-color: #64748b;
            --accent-color: #0ea5e9;
            --success-color: #059669;
            --warning-color: #d97706;
            --danger-color: #dc2626;
            --light-color: #f8fafc;
            --dark-color: #0f172a;
            --text-color: #1e293b;
            --text-light: #64748b;
            --border-color: #e2e8f0;
            --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
            --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
            --shadow-heavy: 0 10px 15px rgba(0, 0, 0, 0.1);
            --shadow-large: 0 20px 25px rgba(0, 0, 0, 0.1);
            --border-radius: 8px;
            --border-radius-large: 12px;
            --transition: all 0.2s ease;
            --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            --gradient-secondary: linear-gradient(135deg, #64748b 0%, #475569 100%);
            --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Helvetica Neue', Arial, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            color: var(--text-color);
            line-height: 1.6;
            min-height: 100vh;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
            z-index: -1;
        }

        html {
            scroll-behavior: smooth;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 头部样式 */
        .header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: var(--shadow-light);
            border-bottom: 1px solid var(--border-color);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            transition: var(--transition);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
            text-decoration: none;
            transition: var(--transition);
        }

        .logo:hover {
            color: var(--primary-dark);
        }

        .logo i {
            font-size: 28px;
            color: var(--primary-color);
        }

        .nav {
            display: flex;
            gap: 30px;
            align-items: center;
        }

        .nav a {
            color: var(--text-color);
            text-decoration: none;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: var(--border-radius);
            transition: var(--transition);
            position: relative;
        }

        .nav a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: var(--transition);
            transform: translateX(-50%);
        }

        .nav a:hover {
            color: var(--primary-color);
        }

        .nav a:hover::after {
            width: 100%;
        }

        .login-btn {
            background: var(--primary-color);
            color: white;
            padding: 10px 20px;
            border-radius: var(--border-radius);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            box-shadow: var(--shadow-light);
        }

        .login-btn:hover {
            background: var(--primary-dark);
            box-shadow: var(--shadow-medium);
            transform: translateY(-1px);
        }

        /* 主要内容区域 */
        .main-content {
            margin-top: 80px;
            min-height: calc(100vh - 80px);
            margin-left: 240px;
            margin-right: 20px;
        }

        /* 规划步骤侧边栏 */
        .planning-steps {
            position: fixed;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            border-radius: var(--border-radius-large);
            padding: 25px 20px;
            box-shadow: var(--shadow-medium);
            z-index: 100;
            max-width: 200px;
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }

        .planning-steps:hover {
            box-shadow: var(--shadow-heavy);
            transform: translateY(-50%) translateY(-2px);
        }

        .step {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
            padding: 10px 12px;
            border-radius: var(--border-radius);
            transition: var(--transition);
            cursor: pointer;
            background: var(--light-color);
            border: 1px solid var(--border-color);
        }

        .step:hover {
            background: #f1f5f9;
            transform: translateX(2px);
        }

        .step.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .step-number {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 12px;
            transition: var(--transition);
        }

        .step.active .step-number {
            background: white;
            color: var(--primary-color);
        }

        .step-content {
            flex: 1;
        }

        .step-title {
            font-weight: 600;
            margin-bottom: 5px;
        }

        .step-desc {
            font-size: 12px;
            color: var(--text-light);
        }

        .step.active .step-desc {
            color: rgba(255, 255, 255, 0.8);
        }

        /* 目的地选择页面 */
        .destination-page {
            padding: 40px 0;
            text-align: center;
        }

        .page-title {
            font-size: 36px;
            font-weight: 700;
            color: var(--text-color);
            margin-bottom: 20px;
            text-align: center;
            position: relative;
        }

        .page-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--primary-color);
            border-radius: 2px;
        }

        /* 加载动画 */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 骨架屏效果 */
        .skeleton {
            background: linear-gradient(90deg, 
                rgba(255, 255, 255, 0.1) 25%, 
                rgba(255, 255, 255, 0.2) 50%, 
                rgba(255, 255, 255, 0.1) 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
        }

        @keyframes skeleton-loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .skeleton-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: var(--border-radius-large);
            padding: 20px;
            margin-bottom: 20px;
        }

        .skeleton-line {
            height: 20px;
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .skeleton-line.short {
            width: 60%;
        }

        .skeleton-line.medium {
            width: 80%;
        }

        .skeleton-line.long {
            width: 100%;
        }

        /* 我的行程弹窗美化 */
        .my-trips-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            animation: fadeIn 0.3s ease;
        }

        .my-trips-content {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(25px);
            border-radius: var(--border-radius-large);
            padding: 30px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: var(--shadow-large);
            border: 1px solid rgba(255, 255, 255, 0.2);
            animation: slideUp 0.3s ease;
        }

        .my-trips-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }

        .my-trips-header h3 {
            color: white;
            font-size: 24px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .trip-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .clear-all-btn, .close-btn {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            transition: var(--transition);
            font-size: 14px;
        }

        .clear-all-btn:hover {
            background: var(--gradient-accent);
            border-color: transparent;
            transform: scale(1.05);
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
        }

        .empty-trips {
            text-align: center;
            padding: 40px 20px;
            color: rgba(255, 255, 255, 0.7);
        }

        .empty-trips i {
            font-size: 48px;
            margin-bottom: 20px;
            opacity: 0.5;
        }

        .trips-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .trip-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: var(--border-radius);
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: var(--transition);
        }

        .trip-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateX(5px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .trip-order {
            width: 30px;
            height: 30px;
            background: var(--gradient-primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 14px;
            }
            
        .trip-image {
            width: 60px;
            height: 60px;
            border-radius: var(--border-radius);
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
        }

        .trip-info {
            flex: 1;
            color: white;
        }

        .trip-name {
            font-weight: 600;
            margin-bottom: 5px;
                font-size: 16px;
            }
            
        .trip-location {
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
            margin-bottom: 3px;
        }

        .trip-type {
            color: rgba(255, 255, 255, 0.5);
            font-size: 12px;
        }

        .trip-actions {
            display: flex;
            gap: 8px;
        }

        .view-btn, .remove-btn {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .view-btn {
            background: var(--gradient-primary);
            color: white;
        }

        .remove-btn {
            background: var(--gradient-accent);
            color: white;
        }

        .view-btn:hover, .remove-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* 响应式设计优化 */
        @media (max-width: 768px) {
            .main-content {
                margin-left: 20px;
                margin-right: 20px;
            }

            .planning-steps {
                position: relative;
                left: auto;
                top: auto;
                transform: none;
                margin: 20px;
                max-width: none;
                width: calc(100% - 40px);
            }

            .header-content {
                flex-direction: column;
                gap: 15px;
                padding: 15px 0;
            }

            .nav {
                gap: 15px;
                flex-wrap: wrap;
            justify-content: center;
            }

            .nav a {
                padding: 8px 15px;
            font-size: 14px;
            }

            .page-title {
                font-size: 32px;
            }

            .search-section {
                margin: 20px;
                padding: 25px;
            }

            .search-bar {
                flex-direction: column;
                gap: 15px;
            }

            .search-input, .search-btn {
                width: 100%;
            }

            .destinations-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .destination-card {
                margin-bottom: 15px;
            }

            .my-trips-content {
                margin: 20px;
                width: calc(100% - 40px);
                max-width: none;
            }

            .trip-item {
                flex-direction: column;
            text-align: center;
                gap: 10px;
            }

            .trip-actions {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .page-title {
                font-size: 24px;
            }
            
            .destination-name {
                font-size: 16px;
            }
            
            .destination-desc {
                font-size: 13px;
            }

            .step {
                padding: 10px;
            }

            .step-number {
                width: 30px;
                height: 30px;
            font-size: 12px;
            }
        }

        .search-section {
            max-width: 100%;
            margin: 0 auto 40px;
            background: white;
            border-radius: var(--border-radius-large);
            padding: 40px;
            box-shadow: var(--shadow-medium);
            border: 1px solid var(--border-color);
        }

        .search-bar {
            display: flex;
            gap: 20px;
            margin-bottom: 40px;
        }

        .search-input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid var(--border-color);
            border-radius: var(--border-radius);
            font-size: 16px;
            outline: none;
            transition: var(--transition);
            background: white;
            color: var(--text-color);
        }

        .search-input::placeholder {
            color: var(--text-light);
        }

        .search-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .search-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: var(--border-radius);
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow-light);
        }

        .search-btn:hover {
            background: var(--primary-dark);
            box-shadow: var(--shadow-medium);
            transform: translateY(-1px);
        }

        .popular-destinations {
            text-align: left;
        }

        .section-title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 20px;
            color: var(--text-color);
        }

        .destinations-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .destination-card {
            background: white;
            border-radius: var(--border-radius-large);
            padding: 0;
            box-shadow: var(--shadow-medium);
            transition: var(--transition);
            cursor: pointer;
            border: 1px solid var(--border-color);
            overflow: hidden;
            position: relative;
        }

        .destination-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-heavy);
            border-color: var(--primary-color);
        }

        .destination-image {
            width: 100%;
            height: 220px;
            background-size: cover;
            background-position: center;
            border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
            position: relative;
            overflow: hidden;
        }

        .destination-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, 
                rgba(0, 0, 0, 0.05) 0%, 
                rgba(0, 0, 0, 0.2) 100%);
            transition: var(--transition);
        }

        .destination-card:hover .destination-image::before {
            background: linear-gradient(135deg, 
                rgba(0, 0, 0, 0.1) 0%, 
                rgba(0, 0, 0, 0.3) 100%);
        }

        .destination-rating {
            position: absolute;
            top: 15px;
            right: 15px;
            background: white;
            padding: 6px 10px;
            border-radius: 15px;
            font-weight: 600;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 4px;
            box-shadow: var(--shadow-light);
            transition: var(--transition);
            font-size: 14px;
        }

        .destination-card:hover .destination-rating {
            transform: scale(1.05);
            box-shadow: var(--shadow-medium);
        }

        .destination-content {
            padding: 20px;
            position: relative;
            z-index: 2;
        }

        .destination-name {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-color);
        }

        .destination-location {
            color: var(--text-light);
            font-size: 14px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .destination-desc {
            color: var(--text-light);
            line-height: 1.5;
            margin-bottom: 15px;
            font-size: 14px;
        }

        .destination-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .tag {
            background: var(--light-color);
            color: var(--primary-color);
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }

        .tag:hover {
            background: var(--primary-color);
            color: white;
            transform: scale(1.05);
        }

        .tag {
            background: var(--light-color);
            color: var(--primary-color);
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: 500;
        }

        /* 景区信息页面 */
        .attractions-section {
            padding: 40px 0;
        }

        .search-results-header {
            margin-bottom: 30px;
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .back-to-search-btn {
            background: var(--light-color);
            color: var(--primary-color);
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .back-to-search-btn:hover {
            background: var(--primary-color);
            color: white;
        }

        .search-info {
            background: var(--light-color);
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
        }

        .search-keyword {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            color: var(--primary-color);
        }

        .search-results-count {
            color: var(--text-light);
            font-size: 14px;
        }

        /* 景点卡片增强样式 */
        .spot-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow-light);
            transition: var(--transition);
            cursor: pointer;
            position: relative;
        }

        .spot-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-medium);
        }

        .spot-image {
            width: 100%;
            height: 200px;
            background-size: cover;
            background-position: center;
            position: relative;
        }

        .spot-rating {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: bold;
        }

        .spot-content {
            padding: 20px;
        }

        .spot-name {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 8px;
            color: var(--text-color);
        }

        .spot-location {
            color: var(--text-light);
            font-size: 14px;
            margin-bottom: 10px;
        }

        .spot-description {
            color: var(--text-light);
            line-height: 1.5;
            margin-bottom: 15px;
            font-size: 14px;
        }

        .spot-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 15px;
        }

        .spot-tag {
            background: var(--light-color);
            color: var(--primary-color);
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: 500;
        }

        .spot-weather {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: var(--light-color);
            border-radius: 10px;
            font-size: 14px;
        }

        .spot-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .add-trip-btn, .view-guide-btn {
            flex: 1;
            padding: 8px 12px;
            border: none;
            border-radius: var(--border-radius);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .add-trip-btn {
            background: var(--primary-color);
            color: white;
        }

        .add-trip-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
        }

        .view-guide-btn {
            background: var(--light-color);
            color: var(--primary-color);
            border: 1px solid var(--border-color);
        }

        .view-guide-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-1px);
        }

        /* 我的行程模块样式 */
        .my-trips-section {
            margin-top: 20px;
            padding-top: 20px;
        }

        .section-divider {
            height: 1px;
            background: var(--border-color);
            margin-bottom: 15px;
        }

        .my-trips-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .my-trips-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            color: var(--text-color);
            font-size: 14px;
        }

        .trip-count {
            background: var(--primary-color);
            color: white;
            border-radius: 10px;
            padding: 2px 6px;
            font-size: 12px;
            font-weight: 500;
        }

        .clear-trips-btn {
            background: var(--danger-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            font-size: 12px;
        }

        .clear-trips-btn:hover {
            background: #dc2626;
            transform: scale(1.1);
        }

        .my-trips-list {
            max-height: 200px;
            overflow-y: auto;
        }

        .empty-trips {
            text-align: center;
            padding: 20px 0;
            color: var(--text-light);
        }

        .empty-trips i {
            font-size: 24px;
            margin-bottom: 8px;
            display: block;
        }

        .empty-trips p {
            font-size: 12px;
            margin: 0;
        }

        .trip-items {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .trip-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 10px;
            background: var(--light-color);
            border-radius: var(--border-radius);
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }

        .trip-item:hover {
            background: #f1f5f9;
            transform: translateX(2px);
        }

        .trip-info {
            flex: 1;
        }

        .trip-name {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-color);
            margin-bottom: 2px;
        }

        .trip-location {
            font-size: 11px;
            color: var(--text-light);
        }

        .remove-trip-btn {
            background: var(--danger-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            font-size: 10px;
        }

        .remove-trip-btn:hover {
            background: #dc2626;
            transform: scale(1.1);
        }

        /* 景点探索页面样式 */
        .explore-page {
            padding: 40px 0;
        }

        .destinations-section {
            margin-top: 40px;
        }

        .result-count {
            color: var(--text-light);
            font-size: 14px;
            font-weight: normal;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-light);
        }

        .empty-state i {
            font-size: 48px;
            margin-bottom: 20px;
            display: block;
            color: var(--border-color);
        }

        .empty-state h3 {
            font-size: 24px;
            margin-bottom: 10px;
            color: var(--text-color);
        }

        .empty-state p {
            font-size: 16px;
            margin: 0;
        }

        .weather-icon {
            font-size: 20px;
        }

        /* AI助手样式 */
        .ai-assistant {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
        }

        .ai-toggle {
            width: 60px;
            height: 60px;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: var(--shadow-medium);
            transition: var(--transition);
            font-size: 24px;
        }

        .ai-toggle:hover {
            transform: scale(1.1);
        }

        .ai-chat {
            position: absolute;
            bottom: 80px;
            right: 0;
            width: 350px;
            background: white;
            border-radius: 15px;
            box-shadow: var(--shadow-medium);
            overflow: hidden;
        }

        .chat-header {
            background: var(--primary-color);
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chat-header h4 {
            margin: 0;
            font-size: 16px;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 18px;
        }

        .chat-messages {
            max-height: 300px;
            overflow-y: auto;
            padding: 20px;
        }

        .message {
            margin-bottom: 15px;
        }

        .ai-message {
            text-align: left;
        }

        .message-content {
            background: var(--light-color);
            padding: 12px 16px;
            border-radius: 15px;
            font-size: 14px;
        }

        .chat-input {
            padding: 15px 20px;
            border-top: 1px solid #e9ecef;
            display: flex;
            gap: 10px;
        }

        .chat-input input {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #e9ecef;
            border-radius: 20px;
            outline: none;
            font-size: 14px;
        }

        .chat-input button {
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .planning-steps {
                display: none;
            }
            
            .nav {
                display: none;
            }
            
            .page-title {
                font-size: 28px;
            }
            
            .search-bar {
                flex-direction: column;
            }
            
            .ai-chat {
                width: 300px;
            }
        }
    </style>
</head>
<body>
    <div id="app">
        <!-- 头部导航 -->
        <header class="header">
            <div class="container">
                <div class="header-content">
                    <a href="#" class="logo">
                        <i class="fas fa-mountain"></i>
                        伊犁智游
                    </a>
                    <nav class="nav">
                        <a href="#home">首页</a>
                        <a href="#destinations">目的地</a>
                        <a href="#help">帮助中心</a>
                        <a href="#" class="login-btn">登录</a>
                    </nav>
                </div>
            </div>
        </header>

        <!-- 主要内容 -->
        <main class="main-content">
            <!-- 规划步骤侧边栏 -->
            <div class="planning-steps">
                <div class="step" :class="{active: currentStep === 'explore'}" @click="setCurrentStep('explore')">
                    <div class="step-number">1</div>
                    <div class="step-content">
                        <div class="step-title">景点探索</div>
                        <div class="step-desc">搜索与浏览景点</div>
                    </div>
                    </div>
                <div class="step" :class="{active: currentStep === 'weather'}" @click="setCurrentStep('weather')">
                    <div class="step-number">2</div>
                    <div class="step-content">
                        <div class="step-title">天气信息</div>
                        <div class="step-desc">查看天气预报</div>
                    </div>
                </div>
                <div class="step" :class="{active: currentStep === 'guide'}" @click="setCurrentStep('guide')">
                    <div class="step-number">3</div>
                    <div class="step-content">
                        <div class="step-title">旅游攻略</div>
                        <div class="step-desc">生成行程规划</div>
                    </div>
                </div>
                <div class="step" :class="{active: currentStep === 'booking'}" @click="setCurrentStep('booking')">
                    <div class="step-number">4</div>
                    <div class="step-content">
                        <div class="step-title">门票预定</div>
                        <div class="step-desc">预订景区门票</div>
                    </div>
                </div>
                <div class="step" :class="{active: currentStep === 'accommodation'}" @click="setCurrentStep('accommodation')">
                    <div class="step-number">5</div>
                    <div class="step-content">
                        <div class="step-title">住宿推荐</div>
                        <div class="step-desc">推荐优质酒店</div>
                    </div>
                </div>
                
                <!-- 我的行程模块 -->
                <div class="my-trips-section">
                    <div class="section-divider"></div>
                    <div class="my-trips-header">
                        <div class="my-trips-title">
                            <i class="fas fa-map-marked-alt"></i>
                            我的行程
                            <span class="trip-count" v-if="myTrips.length > 0">{{ myTrips.length }}</span>
                </div>
                        <button v-if="myTrips.length > 0" @click="clearAllTrips" class="clear-trips-btn">
                            <i class="fas fa-trash"></i>
                        </button>
            </div>
                    <div class="my-trips-list">
                        <div v-if="myTrips.length === 0" class="empty-trips">
                            <i class="fas fa-map"></i>
                            <p>暂无行程</p>
                        </div>
                        <div v-else class="trip-items">
                            <div v-for="trip in myTrips" :key="trip.id" class="trip-item">
                                <div class="trip-info">
                                    <div class="trip-name">{{ trip.name }}</div>
                                    <div class="trip-location">{{ trip.location }}</div>
                        </div>
                                <button @click="removeFromTrip(trip.id)" class="remove-trip-btn">
                                    <i class="fas fa-times"></i>
                                </button>
                    </div>
                        </div>
                        </div>
                    </div>
                        </div>

            <!-- 景点探索页面 -->
            <div v-if="currentStep === 'explore'" class="explore-page">
                <div class="container">
                    <h1 class="page-title">景点探索</h1>
                    
                    <!-- 搜索区域 -->
                    <div class="search-section">
                        <div class="search-bar">
                            <input 
                                type="text" 
                                class="search-input" 
                                v-model="searchKeyword"
                                @keyup.enter="searchDestination"
                                placeholder="搜索伊犁景点,如:那拉提草原、赛里木湖、霍尔果斯口岸..."
                            >
                            <button class="search-btn" @click="searchDestination">
                                <i class="fas fa-search"></i>
                                搜索
                            </button>
                        </div>
                        
                        <!-- 搜索结果显示 -->
                        <div v-if="searchKeyword" class="search-results-header">
                            <div class="search-info">
                                <div class="search-keyword">
                                    <i class="fas fa-search"></i>
                                    <span>搜索关键词：{{ searchKeyword }}</span>
                                </div>
                                <button @click="backToSearch" class="back-to-search-btn">
                                    <i class="fas fa-arrow-left"></i>
                                    返回全部景点
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 景点展示区域 -->
                    <div class="destinations-section">
                        <h2 class="section-title">
                            {{ searchKeyword ? '搜索结果' : '热门目的地' }}
                            <span v-if="scenicSpots.length > 0" class="result-count">({{ scenicSpots.length }}个景点)</span>
                        </h2>
                        
                        <div class="destinations-grid">
                            <div 
                                class="spot-card" 
                                v-for="spot in scenicSpots" 
                                :key="spot.id"
                            >
                                <div class="spot-image" :style="{ backgroundImage: 'url(' + spot.image + ')' }">
                                    <div class="spot-rating">
                                        <i class="fas fa-star"></i> {{ spot.rating }}
                                    </div>
                                </div>
                                <div class="spot-content">
                                    <div class="spot-name">{{ spot.name }}</div>
                                    <div class="spot-location">{{ spot.location }}</div>
                                    <div class="spot-description">{{ spot.description }}</div>
                                    <div class="spot-tags">
                                        <span class="spot-tag">{{ spot.type }}</span>
                                        <span class="spot-tag">¥{{ spot.price }}</span>
                                    </div>
                                    <div class="spot-weather">
                                        <span class="weather-icon">{{ spot.weatherIcon }}</span>
                                        <span>{{ spot.weather }} {{ spot.temperature }}°C</span>
                                    </div>
                                    <div class="spot-actions">
                                        <button class="add-trip-btn" @click="addToTrip(spot)">
                                            <i class="fas fa-plus"></i>
                                            添加行程
                                        </button>
                                        <button class="view-guide-btn" @click="viewSpotDetails(spot)">
                                            <i class="fas fa-book"></i>
                                            查看攻略
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 空状态提示 -->
                        <div v-if="scenicSpots.length === 0" class="empty-state">
                            <i class="fas fa-search"></i>
                            <h3>暂无景点信息</h3>
                            <p>请尝试其他搜索关键词或浏览热门目的地</p>
                        </div>
                    </div>
                </div>
            </div>
                </div>


            <!-- 天气信息页面 -->
            <div v-if="currentStep === 'weather'" class="container">
                <h2 class="section-title">天气信息</h2>
                <div class="destinations-grid">
                    <div 
                        class="spot-card" 
                        v-for="spot in scenicSpots" 
                        :key="spot.id"
                    >
                        <div class="spot-content">
                            <div class="spot-name">{{ spot.name }}</div>
                            <div class="spot-weather">
                                    <span class="weather-icon">{{ spot.weatherIcon }}</span>
                                <span>{{ spot.weather }} {{ spot.temperature }}°C</span>
                </div>
                        </div>
                        </div>
                    </div>
                </div>
                
            <!-- 其他步骤页面 -->
            <div v-if="currentStep === 'guide'" class="container">
                <h2 class="section-title">旅游攻略</h2>
                <p>AI正在为您生成个性化旅游攻略...</p>
                        </div>
                        
            <div v-if="currentStep === 'booking'" class="container">
                <h2 class="section-title">门票预定</h2>
                <p>门票预定功能开发中...</p>
                        </div>
                        
            <div v-if="currentStep === 'accommodation'" class="container">
                <h2 class="section-title">住宿推荐</h2>
                <p>住宿推荐功能开发中...</p>
                            </div>
        </main>

        <!-- AI助手 -->
        <div class="ai-assistant">
            <div class="ai-toggle" @click="toggleAIAssistant">
                <i class="fas fa-robot"></i>
                            </div>
            <div class="ai-chat" v-if="showAIAssistant">
                <div class="chat-header">
                    <h4>AI旅行助手</h4>
                    <button @click="toggleAIAssistant" class="close-btn">
                        <i class="fas fa-times"></i>
                        </button>
                                </div>
                <div class="chat-messages">
                    <div class="message ai-message">
                        <div class="message-content">
                            您好！我是您的AI旅行助手，有什么可以帮助您的吗？
                                </div>
                            </div>
                            </div>
                <div class="chat-input">
                    <input type="text" v-model="aiMessage" @keyup.enter="sendAIMessage" placeholder="输入您的问题...">
                    <button @click="sendAIMessage">
                        <i class="fas fa-paper-plane"></i>
            </button>
                </div>
                </div>
                        </div>
                    </div>
                    
    <script>
        const { createApp } = Vue;
        
        createApp({
            data() {
                return {
                    currentStep: 'explore',
                    searchKeyword: '',
                    scenicSpots: [],
                    allScenicSpots: [],
                    myTrips: [],
                    showAIAssistant: false,
                    aiMessage: ''
                }
            },
            mounted() {
                this.loadScenicSpots();
            },
            methods: {
                setCurrentStep(step) {
                    this.currentStep = step;
                },
                async loadScenicSpots() {
                    try {
                        const response = await axios.get('/spots');
                        if (response.data && response.data.success) {
                            this.allScenicSpots = response.data.data || [];
                            this.scenicSpots = this.allScenicSpots;
                        }
                    } catch (e) {
                        console.error('加载景点数据失败:', e);
                    }
                },
                async searchDestination() {
                    if (!this.searchKeyword.trim()) {
                        this.$message({ message: '请输入搜索关键词', type: 'warning' });
                        return;
                    }
                    try {
                        // 使用本地数据进行搜索过滤
                        const filteredSpots = this.allScenicSpots.filter(spot => 
                            spot.name.toLowerCase().includes(this.searchKeyword.toLowerCase()) ||
                            spot.description.toLowerCase().includes(this.searchKeyword.toLowerCase()) ||
                            spot.location.toLowerCase().includes(this.searchKeyword.toLowerCase()) ||
                            spot.type.toLowerCase().includes(this.searchKeyword.toLowerCase())
                        );
                        
                        if (filteredSpots.length > 0) {
                            this.scenicSpots = filteredSpots;
                            this.currentStep = 'explore';
                            this.$message({ message: `找到 ${filteredSpots.length} 个相关景点`, type: 'success' });
                        } else {
                            this.$message({ message: '未找到相关景点', type: 'warning' });
                        }
                    } catch (e) {
                        console.error('搜索失败:', e);
                        this.$message({ message: '搜索失败，请重试', type: 'error' });
                    }
                },
                selectDestination(spot) {
                    this.scenicSpots = [spot];
                    this.setCurrentStep('explore');
                },
                backToSearch() {
                    this.scenicSpots = this.allScenicSpots;
                    this.searchKeyword = '';
                    this.setCurrentStep('explore');
                },
                addToTrip(spot) {
                    // 检查是否已经添加过
                    const exists = this.myTrips.some(trip => trip.id === spot.id);
                    if (!exists) {
                        this.myTrips.push({
                            id: spot.id,
                            name: spot.name,
                            location: spot.location,
                            type: spot.type,
                            image: spot.image,
                            rating: spot.rating
                        });
                        this.$message({ message: `已将 ${spot.name} 添加到行程`, type: 'success' });
                    } else {
                        this.$message({ message: `${spot.name} 已在行程中`, type: 'warning' });
                    }
                },
                removeFromTrip(tripId) {
                    this.myTrips = this.myTrips.filter(trip => trip.id !== tripId);
                    this.$message({ message: '已从行程中移除', type: 'success' });
                },
                clearAllTrips() {
                    this.myTrips = [];
                    this.$message({ message: '已清空所有行程', type: 'success' });
                },
                async viewSpotDetails(spot) {
                    console.log('查看景点详情:', spot);
                    try {
                        const response = await axios.get(`/spots/${spot.id}/guide`);
                            if (response.data.success) {
                            this.showSpotGuide(response.data.data);
                        }
                    } catch (e) {
                        console.error('获取景点攻略失败:', e);
                        this.$message({ message: '获取景点攻略失败', type: 'error' });
                    }
                },
                showSpotGuide(guideData) {
                    // 显示景点详细攻略
                    this.$alert(`
                        <div style="text-align: left;">
                            <h3>${guideData.spot.name} 游玩攻略</h3>
                            <h4>最佳时间：${guideData.travelGuide.bestTime}</h4>
                            <h4>建议游玩：${guideData.travelGuide.duration}</h4>
                            <h4>亮点特色：</h4>
                            <ul>${guideData.travelGuide.highlights.map(h => `<li>${h}</li>`).join('')}</ul>
                            <h4>推荐活动：</h4>
                            <ul>${guideData.travelGuide.activities.map(a => `<li>${a}</li>`).join('')}</ul>
                            <h4>摄影建议：</h4>
                            <ul>${guideData.travelGuide.photography.map(p => `<li>${p}</li>`).join('')}</ul>
                            <h4>旅行贴士：</h4>
                            <p><strong>着装建议：</strong>${guideData.tips.clothing}</p>
                            <p><strong>天气注意：</strong>${guideData.tips.weather}</p>
                            <p><strong>安全提醒：</strong>${guideData.tips.safety}</p>
                            <h4>住宿推荐：</h4>
                            <p>价格范围：${guideData.accommodation.priceRange}</p>
                            <p>预订建议：${guideData.accommodation.bookingTips}</p>
                            <h4>交通信息：</h4>
                            <p><strong>机场：</strong>${guideData.transportation.airport}</p>
                            <p><strong>火车：</strong>${guideData.transportation.train}</p>
                            <p><strong>汽车：</strong>${guideData.transportation.bus}</p>
                            <p><strong>自驾：</strong>${guideData.transportation.car}</p>
                        </div>
                    `, '景点攻略', {
                        dangerouslyUseHTMLString: true,
                        confirmButtonText: '知道了'
                    });
                },
                toggleAIAssistant() {
                    this.showAIAssistant = !this.showAIAssistant;
                },
                sendAIMessage() {
                    if (this.aiMessage.trim()) {
                        console.log('AI消息:', this.aiMessage);
                        this.aiMessage = '';
                    }
                }
            }
        }).use(ElementPlus).mount('#app');
    </script>
</body>
</html>